package com.example.pharmacy.mapper;

import com.example.pharmacy.model.UserInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: asus
 * Date: 2024-12-21
 * Time: 15:54
 */
@Mapper
public interface UserInfoMapper {
    @Select("select * from users where user_name = #{name} and is_deleted = 0")
    UserInfo selectUserByName(String name);
    @Insert("insert into users (user_name, password) values (#{userName}, #{password})")
    Integer insertUserInfo(UserInfo userInfo);
}
